import {createRouter, createWebHistory} from "vue-router";

// 路由信息
const routes = [
    {
        path: '',
        redirect: 'page'
    },
    // 登录
    {
        path: '/login',
        name: 'Login',
        component: () => import('../views/Login.vue')
    },
    // 全部页面
    {
        path: '/page',
        name: 'Page',
        component: () => import('../views/Page.vue')
    },
];

// 导出路由
const router = createRouter({
    history: createWebHistory(),
    routes
});

export default router;
